package com.ericsson.resourceplanner.utils;

import org.apache.poi.ss.usermodel.Cell;
import org.springframework.stereotype.Service;
@Service
public class AdminUtility {

	public String getCellValue(Cell c)
	{
		String cell_val = null;
		
		switch(c.getCellType())
		{
		case Cell.CELL_TYPE_NUMERIC : cell_val = Double.toString(c.getNumericCellValue());
								   break;
		case Cell.CELL_TYPE_STRING : cell_val = c.getStringCellValue();
					              break;
		case Cell.CELL_TYPE_BLANK : cell_val = " ";
		}
		return cell_val;
	}
}
